package com.woniu.mall.service.impl;

import com.woniu.mall.VO.CommentVO;
import com.woniu.mall.mapper.MallCommentMapper;
import com.woniu.mall.pojo.MallComment;
import com.woniu.mall.service.IMallCommentService;
import com.woniu.mall.pojo.MallComment;
import com.woniu.mall.mapper.MallCommentMapper;
import com.woniu.mall.service.IMallCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 坤
 * @since 2023-05-22
 */
@Service
public class MallCommentServiceImpl extends ServiceImpl<MallCommentMapper, MallComment> implements IMallCommentService {
    @Resource
    private MallCommentMapper commentMapper;

    @Override
    public List<CommentVO> listComment(String pid) {
        List<CommentVO> commentVOList = commentMapper.listComment(pid);
        return commentVOList;
    }
}
